package cn.hnvec.xiaohui;

public class ExampleText31 {

	public static void main(String[] args) {
		// TODO 自动生成的方法存根
   String [] strings= {"123","456","789"};
   for(String string :strings) {
	   string="000";//循环遍历数组
	   System.out.println("修改过后"+strings[0]+" "
				+strings[1]+" "+strings[2]);
		
		for (int i = 0; i < strings.length; i++) {
			strings[i]="000";
		}
		System.out.println("修改过后"+strings[0]+" "
				+strings[1]+" "+strings[2]);
	}

}

	}


